package ${package}.${moduleName}.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import ${package}.${moduleName}.model.${ClassName}Entity;
import ${package}.${moduleName}.service.${ClassName}Service;

import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
import lombok.RequiredArgsConstructor;

/**
* ${tableComment}
*
* @author ${author} ${email}
* @since ${version} ${date}
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("${moduleName}/${functionName}")
@Api(tags = "${tableComment}")
public class ${ClassName}Controller extends BaseTemplateController<${ClassName}Entity> {

    @Autowired
    private ${ClassName}Service ${className}Service;
    @Override
    protected BaseService<${ClassName}Entity> getBaseService() {
        return ${className}Service;
    }
}